package com.ostrich.cloud.ostrichBusinessWeb.client;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichGoodsSercice.model.param.CreateGrounpParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "grounpGoodsClient",name = "ostrichManagerWeb")
public interface GrounpGoodsClient {
    @PostMapping("createGrounp")
    @ApiOperation("创建拼团商品接口")
    public Result createGrounp(@RequestBody CreateGrounpParam param);

    @GetMapping("getGrounp")
    @ApiOperation("查看拼团商品接口")
    public Result getGrounp(@RequestParam("current")Integer current, @RequestParam("size")Integer size);
}
